package cn.edu.scau.cmi.dengzejun.chapter10;

import java.io.*;

public class Example4 {
	public static void main(String args[]) {
		byte[] a = "Happy birthday!".getBytes();
		byte[] b = "Double evelen!".getBytes();
		try {
			FileOutputStream out = new FileOutputStream("happy.txt");
			out.write(a);
			out.write(b, 0, b.length);
			out.close();
		}catch(IOException e) {
			System.out.println("Error"+e);
		}
		return;
	}
}
